<?php

class Index extends Action {
	/**
	 *
	 * @param IRequest $req
	 * @param Response $res
	 * @param Ioc	   $ioc
	 */
	public function exec($req, $res, $ioc) {
		$people = $ioc->lm ( 'people' );
		
		$ps  = $people->select();
		$ps  = $ps->toArray('id','name');
		
		$ps  = array('name'=>'Leo');
		
		$rst = $people->update($ps,25);
				
	}
}